﻿namespace KinonekoSoftware.Studio.Pages.Instances
{
    public abstract class InstanceEditorBase<TData, TEngine> : InstanceEditorBase
        where TData : RootObject
        where TEngine : Engine
    {
        

        protected abstract bool HasTargetObjectExpression(string id);
        protected abstract TData GetTargetObjectExpression(string id);
        protected abstract TData CreateTargetObjectExpression(string id);


        public TEngine TargetEngine { get; }
        public TData   TargetObject { get; private set; }
    }
}